﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptDoanhThuTheoMatHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboNhom")]
        private ComboBox _CboNhom;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("OptTiengAnh")]
        private RadioButton _OptTiengAnh;
        [AccessedThroughProperty("OptTienViet")]
        private RadioButton _OptTienViet;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsDMHangHoa objDMHangHoa;
        private clsXuatKho objXK;
        private DataView pData;
        private DataView pData1;

        public Frm_RptDoanhThuTheoMatHang()
        {
            base.Load += new EventHandler(this.Frm_RptDanhThuTheoMatHang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objDMHangHoa = new clsDMHangHoa();
            this.objXK = new clsXuatKho();
            this.InitializeComponent();
        }

        private void CboNhom_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadDataChon();
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.OptTienViet.Checked)
            {
                this.PrintReport("VIET");
            }
            else
            {
                this.PrintReport("ANH");
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_RptDanhThuTheoMatHang_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, true, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                BuildComboModule.BuildCombo(this.CboNhom, modGeneral.ListDanhMuc.NhomHangHoa, true, "", "");
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptDoanhThuTheoMatHang));
            this.GroupBox1 = new GroupBox();
            this.CboDonVi = new ComboBox();
            this.Label1 = new Label();
            this.Label18 = new Label();
            this.CboNhom = new ComboBox();
            this.TxtDenNgay = new DateTimePicker();
            this.TxtTuNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.Label3 = new Label();
            this.VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Label8 = new Label();
            this.Label7 = new Label();
            this.TxtSearchName = new TextBox();
            this.TxtSearchCode = new TextBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.OptTienViet = new RadioButton();
            this.OptTiengAnh = new RadioButton();
            this.GroupBox2 = new GroupBox();
            this.GroupBox1.SuspendLayout();
            this.VSList.BeginInit();
            this.GroupBox2.SuspendLayout();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboDonVi);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.Label18);
            this.GroupBox1.Controls.Add(this.CboNhom);
            this.GroupBox1.Controls.Add(this.TxtDenNgay);
            this.GroupBox1.Controls.Add(this.TxtTuNgay);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label3);
            Point point = new Point(3, 2);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x1c1, 0x5c);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.CboDonVi.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x62, 0x12);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(290, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 60;
            this.Label1.AutoSize = true;
            point = new Point(12, 0x15);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x3b;
            this.Label1.Text = "Đơn vị";
            this.Label18.AutoSize = true;
            point = new Point(12, 70);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x53, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x35;
            this.Label18.Text = "Nh\x00f3m h\x00e0ng h\x00f3a";
            this.CboNhom.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNhom.FormattingEnabled = true;
            point = new Point(0x62, 0x43);
            this.CboNhom.Location = point;
            this.CboNhom.Name = "CboNhom";
            size = new Size(290, 0x15);
            this.CboNhom.Size = size;
            this.CboNhom.TabIndex = 0x34;
            this.TxtDenNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x129, 0x2b);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x5b, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x31;
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x62, 0x2b);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x56, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x30;
            DateTime time = new DateTime(0x7d7, 11, 1, 0, 0, 0, 0);
            this.TxtTuNgay.Value = time;
            this.Label13.AutoSize = true;
            point = new Point(12, 0x2e);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 50;
            this.Label13.Text = "Từ ng\x00e0y";
            this.Label3.AutoSize = true;
            point = new Point(0xce, 0x2e);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x33;
            this.Label3.Text = "Đến ng\x00e0y";
            this.VSList.AutoResize = false;
            this.VSList.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSList.ColumnInfo = "4,0,0,0,0,85,Columns:0{Width:20;Style:\"DataType:System.Boolean;ImageAlign:CenterCenter;\";}\t1{Caption:\"Kh\x00f3a\";Visible:False;}\t2{Width:100;Caption:\"M\x00e3\";}\t3{Width:149;Caption:\"T\x00ean\";}\t";
            this.VSList.ExtendLastCol = true;
            this.VSList.FocusRect = FocusRectEnum.None;
            point = new Point(6, 15);
            this.VSList.Location = point;
            this.VSList.Name = "VSList";
            this.VSList.Rows.Count = 1;
            this.VSList.Rows.DefaultSize = 0x11;
            this.VSList.SelectionMode = SelectionModeEnum.Row;
            size = new Size(0x1b7, 0x153);
            this.VSList.Size = size;
            this.VSList.StyleInfo = manager.GetString("VSList.StyleInfo");
            this.VSList.TabIndex = 1;
            this.VSList.VisualStyle = VisualStyle.Office2007Blue;
            this.Label8.AutoSize = true;
            point = new Point(0x81, 0x17d);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x2a, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x17;
            this.Label8.Text = "T\x00ecm t\x00ean";
            this.Label7.AutoSize = true;
            point = new Point(2, 0x17d);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x29, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x16;
            this.Label7.Text = "T\x00ecm m\x00e3";
            point = new Point(0x84, 360);
            this.TxtSearchName.Location = point;
            this.TxtSearchName.Name = "TxtSearchName";
            size = new Size(310, 20);
            this.TxtSearchName.Size = size;
            this.TxtSearchName.TabIndex = 0x15;
            point = new Point(6, 360);
            this.TxtSearchCode.Location = point;
            this.TxtSearchCode.Name = "TxtSearchCode";
            size = new Size(0x7c, 20);
            this.TxtSearchCode.Size = size;
            this.TxtSearchCode.TabIndex = 20;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(370, 0x1ef);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x52, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 0x3b;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x11f, 0x1ef);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x51, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 0x3a;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.OptTienViet.AutoSize = true;
            this.OptTienViet.BackColor = Color.Transparent;
            this.OptTienViet.Checked = true;
            point = new Point(0x1a, 0x1f1);
            this.OptTienViet.Location = point;
            this.OptTienViet.Name = "OptTienViet";
            size = new Size(0x51, 0x11);
            this.OptTienViet.Size = size;
            this.OptTienViet.TabIndex = 60;
            this.OptTienViet.TabStop = true;
            this.OptTienViet.Text = "In tiếng Việt";
            this.OptTienViet.UseVisualStyleBackColor = false;
            this.OptTiengAnh.AutoSize = true;
            this.OptTiengAnh.BackColor = Color.Transparent;
            point = new Point(0x8e, 0x1f1);
            this.OptTiengAnh.Location = point;
            this.OptTiengAnh.Name = "OptTiengAnh";
            size = new Size(0x52, 0x11);
            this.OptTiengAnh.Size = size;
            this.OptTiengAnh.TabIndex = 0x3d;
            this.OptTiengAnh.Text = "In tiếng Anh";
            this.OptTiengAnh.UseVisualStyleBackColor = false;
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.VSList);
            this.GroupBox2.Controls.Add(this.TxtSearchCode);
            this.GroupBox2.Controls.Add(this.TxtSearchName);
            this.GroupBox2.Controls.Add(this.Label7);
            this.GroupBox2.Controls.Add(this.Label8);
            point = new Point(3, 0x5e);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x1c1, 0x18c);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x3e;
            this.GroupBox2.TabStop = false;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x1c8, 0x20c);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.GroupBox2);
            this.Controls.Add(this.OptTiengAnh);
            this.Controls.Add(this.OptTienViet);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptDoanhThuTheoMatHang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-BH04";
            this.Text = "BAO CAO DOANH THU THEO MAT HANG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.VSList.EndInit();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            this.pData = new DataView(this.objDMHangHoa.ShowListByField("Khoa|0 as Chon|Ma|Ten" + modGeneral.H_LANGUAGE, "", ""));
            if (this.pData != null)
            {
                this.VSList.DataSource = this.pData;
                C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
                vSList[0, 1] = "";
                vSList[0, 2] = modGeneral.Tranlated("M\x00e3 h\x00e0ng h\x00f3a", "");
                vSList[0, 3] = modGeneral.Tranlated("T\x00ean h\x00e0ng h\x00f3a", "");
                vSList.Cols[0].Visible = false;
                vSList.Cols[1].DataType = System.Type.GetType("System.Boolean");
                vSList.Cols[1].Width = 20;
                vSList.Cols[2].Width = 100;
                vSList = null;
            }
        }

        public void LoadDataChon()
        {
            string pKhoaNhom = "";
            pKhoaNhom = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString();
            this.pData1 = new DataView(this.objDMHangHoa.ShowAllListHangHoaTim("Khoa|0 as Chon", pKhoaNhom));
            this.VSList.DataSource = this.pData1;
            C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
            vSList[0, 1] = "";
            vSList[0, 2] = modGeneral.Tranlated("M\x00e3 h\x00e0ng h\x00f3a", "");
            vSList[0, 3] = modGeneral.Tranlated("T\x00ean h\x00e0ng h\x00f3a", "");
            vSList.Cols[0].Visible = false;
            vSList.Cols[1].DataType = System.Type.GetType("System.Boolean");
            vSList.Cols[1].Width = 20;
            vSList.Cols[2].Width = 100;
            vSList = null;
        }

        public void PrintReport(string strLanguage = "VIET")
        {
            this.Cursor = Cursors.WaitCursor;
            object obj2 = modGeneral.CreatKey("BC_DuLieuDanhMuc", 10, "");
            ReportModule.InitDuLieuDanhMuc(Conversions.ToString(obj2), this.VSList, 0, 1, "");
            DataTable dataTable = this.objXK.GetDoanhThuTheoMatHang(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboDonVi.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), Conversions.ToString(obj2), LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboNhom.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), strLanguage);
            if (dataTable.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                Rpt_DoanhThuBanHang hang = new Rpt_DoanhThuBanHang();
                try
                {
                    hang.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        hang.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        hang.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    hang.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", strLanguage) + ": " + modGeneral.H_ADDRESS);
                    hang.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", strLanguage) + ": " + modGeneral.H_TAXCODE);
                    hang.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", strLanguage) + ": " + modGeneral.H_TELEPHONE);
                    hang.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    hang.SetParameterValue(5, modGeneral.Tranlated("DOANH THU B\x00c1N H\x00c0NG", strLanguage));
                    hang.SetParameterValue(6, modGeneral.Tranlated("Từ ng\x00e0y", strLanguage) + " : " + this.TxtTuNgay.Text);
                    hang.SetParameterValue(7, modGeneral.Tranlated("Đến ng\x00e0y", strLanguage) + " : " + this.TxtDenNgay.Text);
                    hang.SetParameterValue(8, modGeneral.Tranlated("M\x00e3 h\x00e0ng", strLanguage));
                    hang.SetParameterValue(9, modGeneral.Tranlated("T\x00ean h\x00e0ng", strLanguage));
                    hang.SetParameterValue(10, modGeneral.Tranlated("ĐVT", strLanguage));
                    hang.SetParameterValue(11, modGeneral.Tranlated("Số lượng", strLanguage));
                    hang.SetParameterValue(12, modGeneral.Tranlated("Tiền h\x00e0ng", strLanguage));
                    hang.SetParameterValue(13, modGeneral.Tranlated("Thuế", strLanguage));
                    hang.SetParameterValue(14, modGeneral.Tranlated("Chiết khấu", strLanguage));
                    hang.SetParameterValue(15, modGeneral.Tranlated("STT", strLanguage));
                    hang.SetParameterValue(0x10, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", strLanguage));
                    hang.SetParameterValue(0x11, modGeneral.Tranlated("Cộng", strLanguage));
                    hang.SetParameterValue(0x12, modGeneral.Tranlated("Tổng cộng", strLanguage));
                    hang.SetParameterValue(0x13, modGeneral.Tranlated("LẬP BIỂU", strLanguage));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = hang;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        public void SearchHangHoa(string field, string str)
        {
            string str2 = field + " LIKE '" + str + "%'";
            this.pData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa("Ma", this.TxtSearchCode.Text);
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchHangHoa("TenViet", this.TxtSearchName.Text);
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        private void VSList_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (e.Col != 1)
            {
                e.Cancel = true;
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboNhom
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNhom;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboNhom_SelectedIndexChanged);
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged -= handler;
                }
                this._CboNhom = value;
                if (this._CboNhom != null)
                {
                    this._CboNhom.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual RadioButton OptTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptTiengAnh = value;
            }
        }

        internal virtual RadioButton OptTienViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTienViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptTienViet = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSList_BeforeEdit);
                if (this._VSList != null)
                {
                    this._VSList.BeforeEdit -= handler;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.BeforeEdit += handler;
                }
            }
        }
    }
}

